from collections import OrderedDict

from django.test import TestCase

# Create your tests here.

aaa = OrderedDict([('sku_id', 9), ('count', 2), ('selected', True)])

bbb = aaa['sku_id']
print(bbb)


cart_dict = {
                'aaa': {
                    'count': 10,
                    'selected': True
                },
                'bbb': {
                    'count': 20,
                    'selected': False
                }
            }

if 'aaa' in cart_dict:
    print('qqq')

for i,j in cart_dict.items():
    print(i,j)
